﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'GetDetalleFacturaByFacturaID')
	BEGIN
		DROP  Procedure  GetDetalleFacturaByFacturaID
	END

GO

CREATE Procedure GetDetalleFacturaByFacturaID

	(
		@idFactura int
	)


AS
begin
SELECT     IdFactura, 
           IdBien,
           Cantidad,
           Precio
FROM         dbo.DetalleFactura
where IdFactura=@idFactura

end

GO


GRANT EXEC ON GetDetalleFacturaByFacturaID TO PUBLIC

GO


